﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ArgusLib.Controls;

namespace Fraktalysator.Controls
{
	partial class ColorListItem : UserControl
	{
		public ColorListItem()
		{
			InitializeComponent();
			this.cbColor.SortMode = ArgusLib.Controls.ColorComboBox.SortModes.Color;
			this.bRemove.BackgroundImage = Resources.Icons16.Remove;
		}

		public ColorComboBox ColorComboBox { get { return this.cbColor; } }

		public event EventHandler RemoveRequested;

		private void bRemove_Click(object sender, EventArgs e)
		{
			if (this.RemoveRequested != null)
				this.RemoveRequested(this, e);
		}
	}
}
